package co.com.ticci.autolavado.vo;

import java.io.Serializable;
import javax.persistence.*;

/**
 * The primary key class for the ticci_autolavado database table.
 * 
 */
@Embeddable
public class TicciAutolavadoPK implements Serializable {
	//default serial version id, required for serializable classes.
	private static final long serialVersionUID = 1L;

	@Column(name="EMPR_CONS")
	private int emprCons;

	@Column(name="AUTO_CONS")
	private int autoCons;

	public TicciAutolavadoPK() {
	}
	public int getEmprCons() {
		return this.emprCons;
	}
	public void setEmprCons(int emprCons) {
		this.emprCons = emprCons;
	}
	public int getAutoCons() {
		return this.autoCons;
	}
	public void setAutoCons(int autoCons) {
		this.autoCons = autoCons;
	}

	public boolean equals(Object other) {
		if (this == other) {
			return true;
		}
		if (!(other instanceof TicciAutolavadoPK)) {
			return false;
		}
		TicciAutolavadoPK castOther = (TicciAutolavadoPK)other;
		return 
			(this.emprCons == castOther.emprCons)
			&& (this.autoCons == castOther.autoCons);
	}

	public int hashCode() {
		final int prime = 31;
		int hash = 17;
		hash = hash * prime + this.emprCons;
		hash = hash * prime + this.autoCons;
		
		return hash;
	}
}